package com.syni.mdd.yhd.common.all.service.impl.business;

import com.syni.mdd.yhd.common.all.dao.jpa.business.BmsBusinessAreaRelationDao;
import com.syni.mdd.yhd.common.all.entity.business.BmsBusinessAreaRelation;
import com.syni.mdd.yhd.common.all.service.business.BmsBusinessAreaRelationService;
import com.syni.mdd.yhd.common.all.service.impl.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className
 * @description TOO
 * @Author cfx
 * @DATE 2019/4/9 12:04
 * @VERSION 1.0
 **/
@Service
public class BmsBusinessAreaRelationServiceImpl extends BaseService<BmsBusinessAreaRelation, Integer> implements BmsBusinessAreaRelationService {

    @Autowired
    BmsBusinessAreaRelationDao bmsBusinessAreaRelationDao;

    @Override
    public BmsBusinessAreaRelationDao getBaseDao() {
        return bmsBusinessAreaRelationDao;
    }

    @Override
    public BmsBusinessAreaRelation findByBusIdAndAreaId(Integer businessId, Integer areaId) {
        return bmsBusinessAreaRelationDao.findByBusinessIdAndAreaId(businessId,areaId);
    }
}
